//
//  MyPin.h
//  2.原生地图的使用
//
//  Created by liuyuecheng on 16/3/14.
//  Copyright (c) 2016年 liuyuecheng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>

//所有遵守MKAnnotation协议的对象,都会被当成大头针处理
@interface MyPin : NSObject<MKAnnotation>

//自定义三个成员变量
@property (nonatomic,assign)CLLocationCoordinate2D cl2d;
@property (nonatomic,copy)NSString *title;
@property (nonatomic,copy)NSString *subTitle;

//自定义一个构造方法
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D )cl2d AndTitle:(NSString *)title AndSubTitle:(NSString *)subTitle;

@end
